package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.BAboutMapper;
import com.ruoyi.system.domain.BAbout;
import com.ruoyi.system.service.IBAboutService;

/**
 * 关于Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-07-06
 */
@Service
public class BAboutServiceImpl implements IBAboutService 
{
    @Autowired
    private BAboutMapper bAboutMapper;

    /**
     * 查询关于
     * 
     * @param id 关于主键
     * @return 关于
     */
    @Override
    public BAbout selectBAboutById(Long id)
    {
        return bAboutMapper.selectBAboutById(id);
    }

    /**
     * 查询关于列表
     * 
     * @param bAbout 关于
     * @return 关于
     */
    @Override
    public List<BAbout> selectBAboutList(BAbout bAbout)
    {
        return bAboutMapper.selectBAboutList(bAbout);
    }

    /**
     * 新增关于
     * 
     * @param bAbout 关于
     * @return 结果
     */
    @Override
    public int insertBAbout(BAbout bAbout)
    {
        bAbout.setCreateTime(DateUtils.getNowDate());
        return bAboutMapper.insertBAbout(bAbout);
    }

    /**
     * 修改关于
     * 
     * @param bAbout 关于
     * @return 结果
     */
    @Override
    public int updateBAbout(BAbout bAbout)
    {
        bAbout.setUpdateTime(DateUtils.getNowDate());
        return bAboutMapper.updateBAbout(bAbout);
    }

    /**
     * 批量删除关于
     * 
     * @param ids 需要删除的关于主键
     * @return 结果
     */
    @Override
    public int deleteBAboutByIds(Long[] ids)
    {
        return bAboutMapper.deleteBAboutByIds(ids);
    }

    /**
     * 删除关于信息
     * 
     * @param id 关于主键
     * @return 结果
     */
    @Override
    public int deleteBAboutById(Long id)
    {
        return bAboutMapper.deleteBAboutById(id);
    }
}
